package flc.ast.activity;

import androidx.appcompat.app.AppCompatActivity;

import android.app.Dialog;
import android.os.Bundle;
import android.util.DisplayMetrics;
import android.view.Gravity;
import android.view.LayoutInflater;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.ImageView;

import flc.ast.BaseAc;
import flc.ast.R;
import flc.ast.databinding.ActivitySetPwdBinding;
import flc.ast.utils.Content;
import flc.ast.view.PasscodeView;
import stark.common.basic.utils.SPUtil;

public class SetPwdActivity extends BaseAc<ActivitySetPwdBinding> {


    @Override
    protected int onCreate() {
        return R.layout.activity_set_pwd;
    }

    @Override
    protected void initView() {
        mDataBinding.passcodeView.setListener(new PasscodeView.PasscodeViewListener() {
            @Override
            public void onFail() {
                mDataBinding.passcodeView.getWrongStatusColor();
            }

            @Override
            public void onSuccess(String number) {
                SPUtil.putString(mContext, Content.myPassword, number);
                SPUtil.putBoolean(mContext, Content.isHavePassword, true);
                InputPwdActivity.isShow = true;
                startActivity(InputPwdActivity.class);
                finish();
            }
        });

    }

    @Override
    protected void onClickCallback(View v) {
        switch (v.getId()) {

        }
    }

    @Override
    protected void initData() {

    }


}